from spider import *

debug = False
debug_file_path = "D:/文件/项目/境外/测试材料/"

if debug:
    img_dir = "D:/文件/项目/境外/images/"
else:
    img_dir = "D:/spider/images/"
spider_dict = {
    # "纽约时报": {
    #     "spider": NyTimesSpider,
    #     "urls": {
    #         "culture": "https://cn.nytstyle.com/culture",
    #         "education": "https://cn.nytstyle.com/education",
    #         "technology": "https://cn.nytstyle.com/technology",
    #         "china": "https://cn.nytimes.com/china",
    #         "business": "https://cn.nytimes.com/business",
    #         "opinion": "https://cn.nytimes.com/opinion",
    #     }
    # },
    # "博讯网": {
    #     "spider": BxSpider,
    #     "urls": {
    #         "army": "http://www.peacehall.com/news/gb/army/page1.shtml",
    #         "misc": "http://www.peacehall.com/news/gb/misc/page1.shtml",
    #         "pubvp": "http://www.peacehall.com/news/gb/pubvp/page1.shtml",
    #         "taiwan": "http://www.peacehall.com/news/gb/taiwan/page1.shtml",
    #         "religion": "http://www.peacehall.com/news/gb/religion/page1.shtml",
    #         "finance": "http://www.peacehall.com/news/gb/finance/page1.shtml",
    #         "china": "http://www.peacehall.com/news/gb/china/page1.shtml",
    #         "party": "http://news.boxun.com/news/gb/party/page1.shtml",
    #     }
    # },
    # "路透": {
    #     "spider": ReutersSpider,
    #     "urls": {
    #         "quotes": "http://cn.reuters.com/investing/quotes",
    #         "generalnews": "http://cn.reuters.com/news/generalnews",
    #         "analyses": "http://cn.reuters.com/news/analyses",
    #         "CnColumn": "http://cn.reuters.com/news/CnColumn",
    #         "summit": "http://cn.reuters.com/exclusive/summit",
    #         "IntColumn": "http://cn.reuters.com/news/IntColumn"
    #     }
    # },
    # "BBC": {
    #     "spider": BBCSpider,
    #     "urls": {
    #         "science": "http://www.bbc.com/zhongwen/simp/science",
    #         "business": "http://www.bbc.com/zhongwen/simp/business",
    #         "chinese_news": "http://www.bbc.com/zhongwen/simp/chinese_news"
    #     }
    # },
    "太阳报": {
        "spider": OnSpider,
        "urls": {
            # "hk": "http://hk.on.cc/hk/commentary/index_cn.html",
            # "china": "http://hk.on.cc/cn/commentary/index_cn.html",
            "hk": "http://hk.on.cc/hk/bkn/js/20170814/commentary_dailyList_cn.js?_=201708141727"
        }
    },
    # "美国之音中文网": {
    #     "spider": VoaSpider,
    #     "urls": {
    #         "hk": "https://www.voachinese.com/z/1755",
    #         "usa_and_china": "https://www.voachinese.com/z/5030",
    #         "china": "https://www.voachinese.com/p/6197.html",
    #     }
    # },
    # "华尔街日报中文版": {
    #     "spider": WsjSpider,
    #     "urls": {
    #         "economy": "http://cn.wsj.com/gb/economy.php",
    #         "bch": "http://cn.wsj.com/gb/bch.php",
    #         "industry": "http://cn.wsj.com/gb/industry.php",
    #         "globe": "http://cn.wsj.com/gb/globe.php",
    #         "tech": "http://cn.wsj.com/gb/tech.php"
    #     }
    # },
    # "倍可亲": {
    #     "spider": BcSpider,
    #     "urls": {
    #         "backchina": "http://www.backchina.com/"
    #     }
    # }
}
